<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="CallLaterUtil,reflexunit.async.CallLaterUtil,accessorFrameDelay,accessorTimeDelay,functionFrameDelay,functionTimeDelay" name="keywords">
<title>reflexunit.async.CallLaterUtil</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'CallLaterUtil - API Documentation';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?reflexunit/async/CallLaterUtil.html&amp;reflexunit/async/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;CallLaterUtil</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class CallLaterUtil"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">reflexunit.async</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class CallLaterUtil</td>
</tr>
</table>
<p></p>
  Contains helper methods for non-<code>UIComponent</code> classes to asynchronously delay code execution.
  This class allows for delayed execution of instance methods as well as delayed assignments to accessors.
  
  <p>Methods may be <code>public</code>, <code>private</code>, <code>protected</code> or declared inline.
  Accessors must be <code>public</code>.</p>
  
  <p>The most basic usage example of this class is as follows:</p>
  
  <pre>
  CallLaterUtil.functionFrameDelay( this, function():void {
    tace( 'Method executed!' );
  } );
  </pre>
  <p></p>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#accessorFrameDelay()">accessorFrameDelay</a>(thisObject:Object, accessorName:String, value:Object, frames:int = 3):void</div>
<div class="summaryTableDescription">[static]
   Delays assignment to the specified accessor by a fixed number of frames.</div>
</td><td class="summaryTableOwnerCol">CallLaterUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#accessorTimeDelay()">accessorTimeDelay</a>(thisObject:Object, accessorName:String, value:Object, milliseconds:int = 1000):void</div>
<div class="summaryTableDescription">[static]
   Delays assignment to the specified accessor by a fixed number of milliseconds.</div>
</td><td class="summaryTableOwnerCol">CallLaterUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#functionFrameDelay()">functionFrameDelay</a>(thisObject:Object, method:Function, methodArgs:Array = null, frames:int = 3):void</div>
<div class="summaryTableDescription">[static]
   Delays execution of the specified instance method by a fixed number of frames.</div>
</td><td class="summaryTableOwnerCol">CallLaterUtil</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#functionTimeDelay()">functionTimeDelay</a>(thisObject:Object, method:Function, methodArgs:Array = null, milliseconds:int = 1000):void</div>
<div class="summaryTableDescription">[static]
   Delays execution of the specified instance method by a fixed number of milliseconds.</div>
</td><td class="summaryTableOwnerCol">CallLaterUtil</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="accessorFrameDelay()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">accessorFrameDelay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function accessorFrameDelay(thisObject:Object, accessorName:String, value:Object, frames:int = 3):void</code><p>
   Delays assignment to the specified accessor by a fixed number of frames.
   (A single <code>Event.ENTER_FRAME</code> event defines a frame.)
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">thisObject</span>:Object</code> &mdash; Object defining the specified public instance accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">accessorName</span>:String</code> &mdash; Name of accessor to assign value to
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:Object</code> &mdash; Value to assign to specified accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">frames</span>:int</code> (default = <code>3</code>)<code></code> &mdash; Number of frames to delay before performing assignment
   </td>
</tr>
</table>
</div>
<a name="accessorTimeDelay()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">accessorTimeDelay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function accessorTimeDelay(thisObject:Object, accessorName:String, value:Object, milliseconds:int = 1000):void</code><p>
   Delays assignment to the specified accessor by a fixed number of milliseconds.
   (The shortest delay supported will be the time ellapsed between <code>Event.ENTER_FRAME</code> events.)
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">thisObject</span>:Object</code> &mdash; Object defining the specified public instance accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">accessorName</span>:String</code> &mdash; Name of accessor to assign value to
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:Object</code> &mdash; Value to assign to specified accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">milliseconds</span>:int</code> (default = <code>1000</code>)<code></code> &mdash; Number of milliseconds to delay before performing assignment
   </td>
</tr>
</table>
</div>
<a name="functionFrameDelay()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">functionFrameDelay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function functionFrameDelay(thisObject:Object, method:Function, methodArgs:Array = null, frames:int = 3):void</code><p>
   Delays execution of the specified instance method by a fixed number of frames.
   (A single <code>Event.ENTER_FRAME</code> event defines a frame.)
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">thisObject</span>:Object</code> &mdash; Object defining the specified public instance accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">method</span>:Function</code> &mdash; Method to execute after delay; defined by the associated object
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">methodArgs</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; (Optional) array of arguments to pass to supplied methods
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">frames</span>:int</code> (default = <code>3</code>)<code></code> &mdash; Number of frames to delay before performing assignment
   </td>
</tr>
</table>
</div>
<a name="functionTimeDelay()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">functionTimeDelay</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function functionTimeDelay(thisObject:Object, method:Function, methodArgs:Array = null, milliseconds:int = 1000):void</code><p>
   Delays execution of the specified instance method by a fixed number of milliseconds.
   (The shortest delay supported will be the time ellapsed between <code>Event.ENTER_FRAME</code> events.)
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">thisObject</span>:Object</code> &mdash; Object defining the specified public instance accessor
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">method</span>:Function</code> &mdash; Method to execute after delay; defined by the associated object
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">methodArgs</span>:Array</code> (default = <code>null</code>)<code></code> &mdash; (Optional) array of arguments to pass to supplied methods
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">milliseconds</span>:int</code> (default = <code>1000</code>)<code></code> &mdash; Number of milliseconds to delay before performing assignment
   </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
